<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>复合选择器的叠加问题</title>
  <style>
    /* 复合选择器会有权重叠加问题 */
    /* ul li 权重 0,0,0,1 + 0,0,0,1 = 0,0,0,2 */
ul li {
  color: green;
}
li {
  color: palevioletred;
}
.nav li {
  color: blue;
}

  </style>
</head>
<body>
  <ul class="li">
    <li>大猪肘子</li>
    <li>大猪肘子</li>
    <li>大猪肘子</li>
  </ul>
</body>
</html>